
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@crave/farmblocks-form-wrapper
Advanced tools
A form wrapper container with options for cancel and save.
A wrapper container with options for cancel and save.
npm install @crave/farmblocks-form-wrapper
<FormWrapper
onCancel={e => console.log(e)}
onSave={e => console.log(e)}
title="Title"
extraContent={<div>Extra content</div>}
>
<Input label="First Name" />
<Input label="Last Name" />
</FormWrapper>
Output:
propery | type | description | required | default |
---|---|---|---|---|
title | string | The text to be used as the title | ||
cancelLabel | string | The text to be used in the Cancel link | Cancel | |
saveLabel | string | The text to be used by the Save button | Save | |
saveButtonProps | object | The props for Save button (check Button) | ||
onCancel | function | Callback of Cancel link click | Yes | |
onSave | function | Callback of Save button click | Yes | |
children | node | Contents to be rendered | Yes | |
extraContent | node | Contents to be rendered after Save button | ||
loading | boolean | Loading state to be passed to Save button | ||
id | string | id attribute given to the wrapper and to the save and cancel actionables (with -save and -cancel sufixes) | form-wrapper |
MIT
FAQs
A form wrapper container with options for cancel and save.
The npm package @crave/farmblocks-form-wrapper receives a total of 1 weekly downloads. As such, @crave/farmblocks-form-wrapper popularity was classified as not popular.
We found that @crave/farmblocks-form-wrapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.